//
//  RootViewController.m
//  Big Show
//
//  Created by dlios on 15-5-14.
//  Copyright (c) 2015年 Big_Q. All rights reserved.
//

#import "RootViewController.h"
// 以下三个头文件是侧边栏(抽屉)的第三方文件
#import "MMExampleDrawerVisualStateManager.h"
#import "MMDrawerBaseNavigationViewController.h"
#import "UIViewController+MMDrawerController.h"
// 左侧头文件
#import "LeftViewController.h"
@interface RootViewController ()
@property (nonatomic, retain) MMDrawerController *drawerController;
@end

@implementation RootViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 左边
    LeftViewController *leftSideDrawerViewController = [[LeftViewController alloc] init];
    MMDrawerBaseNavigationViewController * navigationController = [[MMDrawerBaseNavigationViewController alloc] initWithRootViewController:leftSideDrawerViewController];
    [navigationController setRestorationIdentifier:@"MMExampleCenterNavigationControllerRestorationKey"];
    
    [leftSideDrawerViewController setRestorationIdentifier:@"MMExampleLeftNavigationControllerRestorationKey"];
    self.drawerController = [MMDrawerController alloc]initWithCenterViewController:navigationController leftDrawerViewController:leftside
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
